package ch.unizh.ifi.ailab.dataTypes;

/**
 * @author hans jaeckle jaeckle@gmail.com
 * 
 */
public class SensorData {
	// klasse zum speichern der daten einer sensorseite

	// sensoren:
	private int ir1, ir2, ir3, ir4;

	private int io1, io2, io3, io4;

	private int us1, us2, us3, us4;

	public SensorData() {
		setIr1(0);
		setIr2(0);
		setIr3(0);
		setIr4(0);

		setIo1(0);
		setIo2(0);
		setIo3(0);
		setIo4(0);

		setUs1(0);
		setUs2(0);
		setUs3(0);
		setUs4(0);
	}

	public String toString() {
		return printIoData();
	}

	public String printIrData() {
		StringBuffer sb = new StringBuffer();
		sb.append("IR1: " + getIr1());
		sb.append(" IR2: " + getIr2());
		sb.append(" IR3: " + getIr3());
		sb.append(" IR4: " + getIr4());
		return sb.toString();
	}

	public String printIoData() {
		StringBuffer sb = new StringBuffer();
		sb.append("IO1: " + getIo1());
		sb.append(" IO2: " + getIo2());
		sb.append(" IO3: " + getIo3());
		sb.append(" IO4: " + getIo4());
		return sb.toString();
	}

	public String printUsData() {
		StringBuffer sb = new StringBuffer();
		sb.append("US1: " + getUs1());
		sb.append(" US2: " + getUs2());
		sb.append(" US3: " + getUs3());
		sb.append(" US4: " + getUs4());
		return sb.toString();
	}

	public int getIo1() {
		return io1;
	}

	public void setIo1(int io1) {
		this.io1 = io1;
	}

	public int getIo2() {
		return io2;
	}

	public void setIo2(int io2) {
		this.io2 = io2;
	}

	public int getIo3() {
		return io3;
	}

	public void setIo3(int io3) {
		this.io3 = io3;
	}

	public int getIo4() {
		return io4;
	}

	public void setIo4(int io4) {
		this.io4 = io4;
	}

	public int getIr1() {
		return ir1;
	}

	public void setIr1(int ir1) {
		this.ir1 = ir1;
	}

	public int getIr2() {
		return ir2;
	}

	public void setIr2(int ir2) {
		this.ir2 = ir2;
	}

	public int getIr3() {
		return ir3;
	}

	public void setIr3(int ir3) {
		this.ir3 = ir3;
	}

	public int getIr4() {
		return ir4;
	}

	public void setIr4(int ir4) {
		this.ir4 = ir4;
	}

	public int getUs1() {
		return us1;
	}

	public void setUs1(int us1) {
		this.us1 = us1;
	}

	public int getUs2() {
		return us2;
	}

	public void setUs2(int us2) {
		this.us2 = us2;
	}

	public int getUs3() {
		return us3;
	}

	public void setUs3(int us3) {
		this.us3 = us3;
	}

	public int getUs4() {
		return us4;
	}

	public void setUs4(int us4) {
		this.us4 = us4;
	}
}
